CPAP for COPD (and sleep apnea)

Does using CPAP for COPD help improve the condition? And what’s the connection, if any, between COPD and sleep apnea?